<? php 
$country=$_GET["country"];

$link = mysql_connect('cash2uca.ipagemysql.com', 'cash2uca', 'actW3740!@#$'); 
	if (!$link) { 
	    die('Could not connect: ' . mysql_error()); 
		} 
mysql_select_db(cash2uca);

$query="SELECT id,statename FROM state WHERE countryid= '". $country."'";
$result=mysql_query($query);
$nr = mysql_num_rows($result);


<div id="xxx">
echo $country;</div>
<select name="state" onchange="getCity($country,this.value)">
for ($i=0; $i<$nr; $i++) {
	$r = mysql_fetch_array($rs);	
	echo "<OPTION VALUE=\"".$r["AccountID"]."\">".$r["AccountID"]."</OPTION>";}
</select>


?>
